﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PumpStation
{
    class PumpStation
    {
        public string ip;
        public int port;
        public bool condition;
        public List<Pump> pumps; 

        /// <summary>
        /// Init pumpstation with pumps
        /// </summary>
        /// <param name="pumps">Number of pumps for pumpstation</param>
        public PumpStation(int pumps)
        {
            this.pumps = new List<Pump>();
            for (int i = 1; i <= pumps; i ++)
                this.pumps.Add(new Pump());
        }

        /// <summary>
        /// Handle current water level
        /// </summary>
        /// <returns>Decimal</returns>
        private decimal CurrentWaterLevel()
        {
            return 1;
        }

        /// <summary>
        /// Called by MainStation
        /// </summary>
        /// <returns></returns>
        public decimal RequestCurrentWaterLevel()
        {
            return CurrentWaterLevel();
        }

        /// <summary>
        /// Start pump
        /// </summary>
        public void StartPump()
        {

        }

        /// <summary>
        /// Stop pump
        /// </summary>
        public void StopPump()
        {

        }
    }
}
